<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of con_submodulo
 *
 * @author Luisao
 */
class con_submodulo extends CI_Model {
    
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    function get_all()
    {
        $this->db->select();
        $query = $this->db->get('con_submodulo');
        return $query;
    }  
    
    function get_by_modulo($id_modulo)
    {
        $this->db->select();
        $this->db->where('id_modulo',$id_modulo);
        $query = $this->db->get('con_submodulo');
        return $query;
    }      
}

?>
